package com.hqyj.mana.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hqyj.mana.dao.UserMapper;
import com.hqyj.mana.pojo.User;
import com.hqyj.mana.service.UserManagementService;
@Service
public class UserManagementServiceImpl implements UserManagementService {
	@Autowired
	private UserMapper userMapper;
	@Override
	public int changeIdentity(String roleId, String userId) {
		// TODO Auto-generated method stub
		User user = new User();
		user.setRoleId(Integer.parseInt(roleId));
		user.setUserId(Integer.parseInt(userId));
		int result = userMapper.updateByPrimaryKeySelective(user);
		return result;
	}

}
